import http from "@/api";

import { ResPage } from "@/api/interface";

import { InterViewEntity, InterViewVo } from "@/biz/interface/JobType";

import { ModuleMainUrl } from "..";

const moduleUrl = ModuleMainUrl;

// * 获取岗位的面试列表
export const getJobInterviewsListApi = (params: { jobId: string }) => {
  return http.post<ResPage<InterViewVo>>(moduleUrl + `/cpyjob/interviews`, params);
};

// * 新增发布的岗位面试信息
export const saveJobInterviewApi = (interview: InterViewEntity) => {
  return http.post(moduleUrl + `/cpyjob/sendinterview`, interview);
};

// * 新增发布的岗位面试信息
export const infoJobInterviewApi = (params: { id: string }) => {
  return http.post(moduleUrl + `/cpyjob/jobinterviewinfo`, params);
};
